﻿using ProTrack.Dto;
using ProTrack.Entity;
using System;
using System.Collections.Generic;
using System.Text;
using System.Threading.Tasks;

namespace ProTrack.IServices.SalesOrder
{
   public interface IOrderSaleServices
    {
        public Task<IEnumerable<OrderSale>> GetllAsync();
        public Task<IEnumerable<OrderSale>> GetAsync(int PageIndex, int PageSize, string Number, string CustomerNumber, string WarehouseId, string Status);

        public Task<int> GetCountAsync(string Number, string CustomerNumber,string WarehouseId,string Status);
        public Task<IEnumerable<OrderSaleItemDto>> GetOrderSalebyIdAsync(string OrderSaleId,int WarehouseId);
        public Task<bool> AddAsync(OrderSale model, List<OrderSaleItem> list);
        public Task<bool> UpdateAsync(OrderSale model, List<OrderSaleItem> list);
        public Task<bool> DeleteAsync(int[] Ids);
        public Task<bool> UpdateOrderStatus(int Id, string Status);

    }
}
